/******************************************/
/******************************************/
/****  JS Document                     ****/
/****  type/code 2010                  ****/
/****  by Andrew Mahon                 ****/
/******************************************/
/******************************************/

(function(tc) {
	tc.jQ.fn.blog = function(options){
		var $tcb = this, _o = {}
		
		_o = tc.jQ.extend({
			
		},options)
		
		function _initialize(){
			tc.util.log("type/code Blog Starting",'info')
			tc.jQ.easing.def = "easeInOutCubic"
			_setup_events()
			$tcb.find("#header").blogHeader(_o)
			$tcb.find('.post').each(function(i,j){
				var _me = tc.jQ(j)
				var _myId = _me.attr('id').substring(5,_me.attr('id').length)
				var _myOpt = tc.jQ.extend({id:_myId},_o)
				_me.blogPost(_myOpt)
			})
			$tcb.find('.sidebar-tumblr').blogTumblr(_o)
			return $tcb
		}
		
		function _setup_events(){
			
		}
		
		return _initialize()
	}
})(tc);